package com.example.consumer.config;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Queue;

/**
 * 反馈队列
 */
@Configuration
public class QueueConfig {

    @Value("${feedbackqueue}")
    private String feedbackQueue;

    @Bean
    public Queue logQueue() {
        return new ActiveMQQueue(feedbackQueue);
    }

}
